package org.air.demo.app;

import org.air.demo.api.ServiceOne;
import org.springframework.context.support.ClassPathXmlApplicationContext;

 public class Application1 {

    public static void main(String[] args)  {
        ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("META-INF/spring/application-dubbo-one.xml");
        context.start();
        ServiceOne serviceOne = context.getBean(ServiceOne.class);
        while (true) {
            try {
                Thread.sleep(1000);
                serviceOne.invoke();
            } catch (Throwable throwable) {
                throwable.printStackTrace();
            }
        }
    }
}
